package com.promis.util;

import android.app.Activity;
import android.content.Intent;

/**
 * Created by Administrator on 2017/8/10.
 */

public class ActivityUtils {

    public static void goBackstage(Activity activity) {
        Intent intent = new Intent(Intent.ACTION_MAIN);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.addCategory(Intent.CATEGORY_HOME);
        activity.startActivity(intent);
    }
}
